public class test7 {
    public static void main(String[] args) {
        char[][]  chunxiao = {  
            { '春' , '眠' , '不' , '觉' , '晓' }  , 
            { '处' , '处' , '蚊' , '子' , '咬' } , 
            { '打' , '上' , '敌' , '敌' , '畏' } , 
            { '不' , '知' , '死' , '了' , '谁' } 
          };
          System.out.println("翻转前的效果：");
          for(int i=0;i<chunxiao.length;i++){
                for(int j=0;j<chunxiao[i].length;j++){
                    char ch=chunxiao[i][j];
                    System.out.print(ch+" ");
                }
                System.out.println();
          }
          System.out.println("翻转后的效果：");
          char [][] temp=new char[chunxiao[0].length][chunxiao.length];
          for (int i = 0; i < chunxiao.length; i++) {  
            for (int j = 0; j < chunxiao[i].length; j++) {  
                temp[i][j]=chunxiao[chunxiao[i].length-j-1][i];  
            }  
        }  
        for (int i = 0; i < temp.length; i++) {  
            for (int j = 0; j < temp[i].length; j++) {  
                System.out.print(temp[i][j] + " ");  
            }  
            System.out.println();  
        }  

    }
}